package com.ruoyi.share.service.impl;

import java.util.List;

import com.ruoyi.share.domain.ShareViwepager;
import com.ruoyi.share.service.IShareViwepagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.share.mapper.ShareViwepagerMapper;

/**
 * 轮播图Service业务层处理
 *
 * @author ruoyi
 * @date 2021-11-16
 */
@Service
public class ShareViwepagerServiceImpl implements IShareViwepagerService
{
    @Autowired
    private ShareViwepagerMapper shareViwepagerMapper;

    /**
     * 查询轮播图
     *
     * @param id 轮播图主键
     * @return 轮播图
     */
    @Override
    public ShareViwepager selectShareViwepagerById(Long id)
    {
        return shareViwepagerMapper.selectShareViwepagerById(id);
    }

    /**
     * 查询轮播图列表
     *
     * @param shareViwepager 轮播图
     * @return 轮播图
     */
    @Override
    public List<ShareViwepager> selectShareViwepagerList(ShareViwepager shareViwepager)
    {
        return shareViwepagerMapper.selectShareViwepagerList(shareViwepager);
    }

    /**
     * 新增轮播图
     *
     * @param shareViwepager 轮播图
     * @return 结果
     */
    @Override
    public int insertShareViwepager(ShareViwepager shareViwepager)
    {
        return shareViwepagerMapper.insertShareViwepager(shareViwepager);
    }

    /**
     * 修改轮播图
     *
     * @param shareViwepager 轮播图
     * @return 结果
     */
    @Override
    public int updateShareViwepager(ShareViwepager shareViwepager)
    {
        return shareViwepagerMapper.updateShareViwepager(shareViwepager);
    }

    /**
     * 批量删除轮播图
     *
     * @param ids 需要删除的轮播图主键
     * @return 结果
     */
    @Override
    public int deleteShareViwepagerByIds(Long[] ids)
    {
        return shareViwepagerMapper.deleteShareViwepagerByIds(ids);
    }

    /**
     * 删除轮播图信息
     *
     * @param id 轮播图主键
     * @return 结果
     */
    @Override
    public int deleteShareViwepagerById(Long id)
    {
        return shareViwepagerMapper.deleteShareViwepagerById(id);
    }
}
